import wx

class ChartControlView(wx.ToolBar):
     
    def __init__(self, parent):
        
        try:
            wx.ToolBar.__init__(self, parent)
            self._refresh= wx.Button(self, -1, 'Refresh', pos=(0, 0), size=(80, 25))
            self._tickerLabel = wx.StaticText(self, -1, "Ticker", pos=(80, 0), size=(60, 25))
            self._ticker = wx.TextCtrl(self, -1, "IBM", pos=(140, 0), size=(40, 25))
            self._periodLabel = wx.StaticText(self, -1, "Period", pos=(180, 0), size=(60, 25))
            self._period = wx.TextCtrl(self, -1, "200", pos=(240, 0), size=(40, 25))
            self._daysLabel = wx.StaticText(self, -1, "Days", pos=(280, 0), size=(60, 25))
            self._days = wx.TextCtrl(self, -1, "1", pos=(340, 0), size=(40, 25))
            
        except BaseException, e:
                print("ChartControlView.__init__ Error %s", e)